package com.example.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private int oid;//订单ID
    private int cid;//汽车ID
    private int uid;//用户ID
    private String oState;//订单状态
    private String appointmentStart;//预约起始时间
    private String appointmentEnd;//预约截至时间
    private String lastUpdate;//订单生成时间


    public void setOState(State oState) {
        this.oState = oState.getState();
    }

    public void setOState(String oState) {
        this.oState = oState;
    }

    public Order(int cid, int uid, String appointmentStart, String appointmentEnd) {
        this.cid = cid;
        this.uid = uid;
        this.appointmentStart = appointmentStart;
        this.appointmentEnd = appointmentEnd;
    }
}
